<extend name="Public:innerbase" />
<block name="css">
    <link href="{:RES}/css/ss.css" rel="stylesheet" type="text/css"  />
    <link href="{:RES}/css/style.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="{:RES}/css/cymain.css" />
    <link rel="stylesheet" type="text/css" href="{:STATICS}/css/default_user_com.css" media="all">
    <link rel="stylesheet" href="{:STATICS}/kindeditor/themes/default/default.css" />
    <link rel="stylesheet" href="{:STATICS}/kindeditor/plugins/code/prettify.css" />
</block>

<block name="js">

    <link rel="stylesheet" href="{:STATICS}/kindeditor/themes/default/default.css" />
    <link rel="stylesheet" href="{:STATICS}/kindeditor/plugins/code/prettify.css" />
    <script src="{:STATICS}/kindeditor/kindeditor.js" type="text/javascript"></script>
    <script src="{:STATICS}/kindeditor/lang/zh_CN.js" type="text/javascript"></script>
    <script src="{:STATICS}/kindeditor/plugins/code/prettify.js" type="text/javascript"></script>
    <script src="{:STATICS}/js/upyun.js"></script>
    <script src="{:STATICS}/kindeditor/kindeditor.js" type="text/javascript"></script>
    <script src="{:STATICS}/kindeditor/lang/zh_CN.js" type="text/javascript"></script>
    <script src="{:STATICS}/kindeditor/plugins/code/prettify.js" type="text/javascript"></script>
<script>
			KindEditor.ready(function(K) {
				var editor = K.editor({
					allowFileManager : true
				});
				K('#image1').click(function() {
					editor.loadPlugin('image', function() {
						editor.plugin.imageDialog({
							imageUrl : K('#face').val(),
							clickFn : function(url, title, width, height, border, align) {
								K('#face').val(url);
								editor.hideDialog();
							}
						});
					});
				});
				K('#insertfile').click(function() {
					editor.loadPlugin('insertfile', function() {
						editor.plugin.fileDialog({
							fileUrl : K('#url4').val(),
							clickFn : function(url, title) {
								K('#url4').val(url);
								editor.hideDialog();
							}
						});
					});
				});
			});
		</script>
 <script src="/tpl/static/upyun.js"></script>
<script>

var editor;
KindEditor.ready(function(K) {
editor = K.create('#description', {
resizeType : 1,
allowPreviewEmoticons : false,
allowImageUpload : true,
uploadJson : '/index.php?g=User&m=Upyun&a=kindedtiropic',
items : [
'source','undo','plainpaste','wordpaste','clearhtml','quickformat','selectall','fullscreen','fontname', 'fontsize','subscript','superscript','indent','outdent','|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline','hr']
});



editor = K.create('#comment', {
resizeType : 1,
allowPreviewEmoticons : false,
allowImageUpload : true,
uploadJson : '/index.php?g=User&m=Upyun&a=kindedtiropic',
items : [
'source','undo','plainpaste','wordpaste','clearhtml','quickformat','selectall','fullscreen','fontname', 'fontsize','subscript','superscript','indent','outdent','|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline','hr']
});
});
</script>
</block>


<block name="content">
    <include file="Public:upload" />

 <div class="content"  >
<div class="cLineB">
  <link rel="stylesheet" type="text/css" href="./tpl/User/default/common/css/cymain.css" />

<div class="tab">
<ul>
<li class="<if condition="ACTION_NAME EQ 'index'">current</if> tabli" id="tab0"><a href="{:U('Lvyou/index',array('token'=>$token))}">旅游区简介</a></li>
<li class="<if condition="ACTION_NAME EQ 'son' ">current</if> tabli" id="tab2"><a href="{:U('Lvyou/son',array('token'=>$token))}">景区</a></li>
<li class="<if condition="ACTION_NAME EQ 'housetype' ">current</if> tabli" id="tab2"><a href="{:U('Lvyou/housetype',array('token'=>$token))}">景点</a></li>
<li class="<if condition="ACTION_NAME EQ 'album' or ACTION_NAME EQ 'album_add'">current</if> tabli" id="tab5"><a href="{:U('Lvyou/album',array('token'=>$token))}">风景相册</a></li>
<li class="<if condition="ACTION_NAME EQ 'expert'">current</if> tabli" id="tab5"><a href="{:U('Lvyou/expert',array('token'=>$token))}">游客点评</a></li>
<li class="<if condition="ACTION_NAME EQ 'lvyouindex'">current</if> tabli" id="tab6"><a href="{:U('lvyou/reservation',array('token'=>$token))}">预约管理</a></li>
</ul>
</div>
 
<div class="cLineB">
  <h4>添加点评 </h4><a href="javascript:history.go(-1);return false;" class="right btnGrayS vm" style="margin-top:-27px">返回</a>
 </div>
     <link rel="stylesheet" type="text/css" href="./tpl/User/default/common/css/cymain.css" />

 
    <div class="msgWrap bgfc">
	  <form class="form" method="post" action="" >
		<table class="userinfoArea" style=" margin:0;" border="0" cellspacing="0" cellpadding="0" width="100%">
			<tbody>
				<tr>
					<input type="hidden" name="thetype" value="Lvyou">
				  <th valign="top"><span class="red">*</span>标题:</th>
				  <td>
					 <input type="text" id="title" name="title" value="{$expert['title']}" class="input-large px" data-rule-required="true" data-rule-maxlength="20">
                                        <span class="maroon">*</span>
                                        <span class="help-inline">尽量简单，不要超过20字</span></td>
				</tr>
				<tr>
					<th width="120">显示顺序:</th>
					<td> <input type="text" id="sort" name="sort" value="{$expert['sort']|default=1}" class="input-mini px" data-rule-required="true" data-rule-number="true">
                                        <span class="maroon">*</span>
                                        <span class="help-inline">数值越大越靠前</span></td>
				</tr>
				<tr>
					<th width="120">游客姓名：</th>
					<td> <input type="text" id="name" name="name" value="{$expert['name']}" class="input-large px" data-rule-required="true">
                                        <span class="maroon">*</span></td>
				</tr>
				<tr>
					<th width="120">游客职业：</th>
					<td>  <input type="text" id="position" name="position" value="{$expert['position']}" class="input-large px" data-rule-required="true" data-rule-maxlength="20">
                                        <span class="maroon">*</span></td>
				</tr>
				<tr>
					<th width="120">游客照片：</th>
					<td>  <script src="{:STATICS}/upyun.js"></script>
                                        <p>
                                            <img class="thumb_img" id="faceHolder" src="{$expert['face']}" style="max-height:100px;">
                                            <input type="input" class="px" id="face" value="{$expert['face']}" name="face" >
                                     
                                            <span class="help-inline">
                                                 	<span class="ke-button-common" id="image1" style="margin-top: 3px;margin-left: 5px;">
                  		<div class="btn-group" style="vertical-align:bottom;">
                            <span class="btn btn-xs btn-primary" onclick="selectAsset('face',720,400)">
                                <span class="glyphicon glyphicon-cloud-upload"></span>选择
                            </span>
                            <span class="btn btn-primary btn-xs" onclick="previewImg('face')">
                                <span class="glyphicon glyphicon-picture"></span>预览
                            </span>
                        </div>
                                                <span class="help-inline">建议尺寸：宽400像素，高400像素</span>
                                            </span>
                                        </p></td>
				</tr>
				<tr>
					<th width="120">游客介绍：</th>
					<td>  <textarea id="description" name="description" placeholder='游客描述' style="width:560px;height:75px" >{$expert['description']}</textarea>
                                        <span class="maroon">*</span>
                                        <span class="help-block">最多可150字</span></td>
				</tr>
				<tr>
					<th>点评内容：</th>
					<td>
	 <textarea id="comment" name="comment" placeholder='点评内容' style="width:560px;height:75px" >{$expert['comment']}</textarea>
                                        <span class="maroon">*</span>
                                        <span class="help-block">最多可5k字</span>
					</td>
				</tr>
				<th>&nbsp;</th>
				  <if condition="$expert['id'] neq ''">
                                    <input type="hidden" name="id" value="{$expert['id']}" />
                                </if>
                                    <input type="hidden" name="pid" value="{$pid}">
					<td>
						<button type="submit" name="button" class="btnGreen">保存</button>
						<a href="javascript:history.go(-1);" class="btnGray vm">取消</a>
					</td>
				</tr>
			</tbody>
		</table>
	</form>
  </div> 
 
  
        </div>
<include file="Public:footer"/>
</block>